﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace Chinaer.Model.Common
{
    [Serializable]
    [DataContract]
    public class JsonResult
    {
        public static JsonResult Instance
        {
            get
            {
                return new JsonResult();
            }
        }
        private bool _success = false;
        /// <summary>
        /// 是否成功的标志
        /// </summary>
        [DataMember]
        public bool Success
        {
            get { return _success; }
            set { _success = value; }
        }
        /// <summary>
        /// 错误信息
        /// </summary>
        
        [DataMember]
        public object ErrorMessage { get; set; }

        private Chinaer.Core.BaseCore.LoginStatus _loginStatus = Chinaer.Core.BaseCore.LoginStatus.False;
        [DataMember]
        public Chinaer.Core.BaseCore.LoginStatus LoginStatus
        {
            get
            {
                return _loginStatus;
            }
            set
            {
                _loginStatus = value;
            }
        }
    }

    


}
